﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_WebControls_WishListProduct : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    public string ProductID
    {
        set
        {
            _LinkImage.NavigateUrl = Page.GetRouteUrl("ProductDetails", new { id = Convert.ToInt32(value) });
            _Name.NavigateUrl = Page.GetRouteUrl("ProductDetails", new { id = Convert.ToInt32(value) });
        }
    }
    public string Image { 
        get { return _Image.ImageUrl; }
        set
        {
            if (value.Length > 0)
            {
                _Image.ImageUrl = Page.ResolveUrl(value);
            }
            else
            {
                _Image.ImageUrl = Page.ResolveUrl("~/Content/SiteImages/NoPictre.png");
            } 
        }
    }

    public string OldPrice { 
        get { return _OldPrice.Text; } 
        set { _OldPrice.Text = value; }
    }

    public string Price { 
        get { return _Price.Text; } 
        set { _Price.Text = value; } 
    }

    public string Rating    {
        get;
        set;
    }

    public string Quantity { 
        get { return _Quantity.Text; } 
        set { _Quantity.Text = value; }
    }

    public string NavigateUrl {
        get { return _LinkImage.NavigateUrl; }
        set { 
            _LinkImage.NavigateUrl = value;
            _Name.NavigateUrl = value;
        }
    }

    public string Name { 
        get { return _Name.Text; } 
        set { _Name.Text = value; } 
    }
}